package org.example.json.valueobject;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.example.json.inspect.Probe;

import java.math.BigDecimal;

public class ProductMixin {
    @JsonCreator
    public ProductMixin(@JsonProperty("id") long id, @JsonProperty("code") String code, @JsonProperty("name") String name, @JsonProperty("price") BigDecimal price) {
        Probe.run(ProductMixin.class, id, code, name, price);
    }
}
